
import 'package:flutter/services.dart';

@pragma('vm:entry-point')
const sendAndroidChannel = MethodChannel("FlutterToAndroid");

const fromAndroidChannel = MethodChannel("AndroidToFlutter");

const checkBluetoothIsOpen = MethodChannel("checkBluetoothIsOpen");

///接受Channel的value跳转到WmsWorkbenchPage
const String TO_WMS_METHOD_CHANNEL = "TO_WMS_METHOD_CHANNEL";

///检查android是否具备
///Manifest.permission.BLUETOOTH_CONNECT,
///Manifest.permission.BLUETOOTH_ADVERTISE,
///Manifest.permission.BLUETOOTH_SCAN,
///这三个权限
const String CHECK_PERMISSION_RESULT = "CHECK_PERMISSION_RESULT";

///检测蓝牙是否连接的
const String CHECK_BLUETOOTH_IS_OPEN_4 = "CHECK_BLUETOOTH_IS_OPEN_4";

///跳转到打印页详情
const String TO_PRINTER_DETAIL_PAGE_CHANNEL = "TO_PRINTER_DETAIL_PAGE_CHANNEL";

///发起搜索
const String SEARCH_DEVICE = "SEARCH_DEVICE";

///停止蓝牙搜索
const String STOP_SEARCH_DEVICE = "STOP_SEARCH_DEVICE";

///蓝牙正在搜索中
const String SEARCHING_CHANNEL = "SEARCHING_CHANNEL";

///蓝牙设备搜不到
const String DEVICE_NOT_FOUND_CHANNEL = "DEVICE_NOT_FOUND_CHANNEL";

///显示搜索到的设备蓝牙设备
const String SHOW_DEVICE_LIST = "SHOW_DEVICE_LIST";

///添加设备蓝牙设备数据
const String ADD_DEVICE_LIST = "ADD_DEVICE_LIST";

///连接蓝牙设备
const String CONNECT_DEVICE = "CONNECT_DEVICE";

///连接蓝牙的弹窗关闭
const String DISS_CONNECT_DIALOG = "DISS_CONNECT_DIALOG";

///连接蓝牙成功
const String CONNECT_SUCCESS = "CONNECT_SUCCESS";

///连接蓝牙失败
const String CONNECT_FAIL = "CONNECT_FAIL";

///获取蓝牙设备信息
const String DEVICE_INFO = "DEVICE_INFO";

///断开蓝牙连接
const String DISSMISS_CONNECT = "DISSMISS_CONNECT";

///向android发起单个打印销售单
const String PRINT_SINGLE = "PRINT_SINGLE";

///向android发起打印所有销售单
const String PRINT_ALL = "PRINT_ALL";


